package com.qyhl.webtv.module_microvideo.shortvideo.search;


import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoSearchBean;
import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoThemeBean;

import java.util.List;

public class ShortVideoSearchPresenter implements ShortVideoSearchContract.ShortVideoSearchPresenter {
    private ShortVideoSearchActivity mView;
    private ShortVideoSearchModel mModel;

    public ShortVideoSearchPresenter(ShortVideoSearchActivity mView) {
        this.mView = mView;
        this.mModel = new ShortVideoSearchModel(this);
    }

    @Override
    public void getHotTheme(String actId) {
        mModel.getHotTheme(actId);
    }

    @Override
    public void goSearch(String actId, String key, String type) {
        mModel.goSearch(actId, key, type);
    }

    @Override
    public void setHotTheme(List<ShortVideoThemeBean> beanList) {
        mView.setHotTheme(beanList);
    }

    @Override
    public void setHotError(String msg) {
        mView.setHotError(msg);
    }

    @Override
    public void setSearch(ShortVideoSearchBean bean) {
        mView.setSearch(bean);
    }

    @Override
    public void setSearchError(String msg) {
        mView.setSearchError(msg);
    }
}
